<link href="../../asset/css/style_kartu.css" rel="stylesheet" type="text/css">
<?php
	include ('../../config/koneksi.php');
	include ('../../config/library.php');
	include ('../../config/fungsi_tgl_indo.php');
	$id=$_GET['id'];

	$sql=mysql_query("select id_peserta,nama,tgl_lahir,foto,masa_berlaku from peserta p inner join penduduk pn on p.id_penduduk = pn.id_penduduk where id_peserta='$id'");
	$hasil = mysql_fetch_array($sql);
	
	$pejabat = mysql_fetch_array(mysql_query("select * from setting where id_setting = 1"));
?>
<div id="cetak">
	<?php
	$id=$hasil['id_peserta'];
	cetak_barcode($id);	
	?>
	<div id="kartu">
	<table border="0" width="325" height="204" id="tb_cetak">
		<tr>
			<td width="80"></td>
			<td width="100"></td>
			<td></td>
		</tr>
		<tr height="15">
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr height="20">
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr height="6">
			<td rowspan="5" valign="top" align="center"><img src="../../foto_peserta/<?php echo $hasil['foto']; ?>" width="65" height="70" style="border: 3px solid #ccc;"></td>
			<td></td>
			<td></td>
		</tr>
		<tr height="8">
			<td colspan="2" rowspan="3" align="center">
				<?php echo "<div id='id_peserta'>*$id*</div>"; ?>
				<?php echo "<b>$id</b>"; ?>
			</td>
		</tr>
		<tr height="3"></tr>
		<tr height="3"></tr>
		<tr height="3">
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td colspan="2" rowspan="1" height="20" align="center"><?php echo "<b style='font-size: 14px;'>$hasil[nama]</b><br><font size=1>".tgl_ind1($hasil['tgl_lahir']) ?></font></td>
			<td rowspan="2" class="ttd" height="20" valign="bottom">
				<?php 
					echo $pejabat['jabatan']."<br>
					<img src='../../asset/images/$pejabat[ttd]' height=30 style='padding: 2px'><br>
					$pejabat[nama]"; 
				?>
			</td>
		</tr>
		<tr height="35">
			<td colspan="2" class="berlaku" style="padding-left: 10px;">Berlaku s.d. <?php echo tgl_ind1($hasil['masa_berlaku']); ?></td>
		</tr>
	</table>
	</div>
</div>